-
Notifications
You must be signed in to change notification settings - Fork 7
feat: move all custom JS to afterInteractive #433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🌿 Documentation Preview
|
| strategy: afterInteractive | ||
| - path: assets/dashboard-referral.js | ||
| strategy: beforeInteractive | ||
| strategy: afterInteractive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait it looks like below you are removing this script entirely? can't this be removed from docs.yml too then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no! Sorry I should have made that clearer. I'm just removing the TS source code of this script since it's not really needed anymore (assuming we aren't making regular changes). The actual script we're using here is a transpiled version in assets.
I can leave it if you prefer but seems like bad practice to have both source and transpiled version in source control
Description
Currently we have some JS which is slowing down the site. For some reason this was set as
beforeInteractivewhich means its render-blocking. So what if we just like, didn't do that.Related Issues
Changes Made
afterInteractiveTesting
pnpm run validate)